import java.util.Random;

public class Poker {

    static void pokershuff(String[] pokers){
        for(int i = 0; i < 52; i++)
        {
            Random random = new Random();
            int j = random.nextInt(52);
            String tmp = pokers[i];
            pokers[i] = pokers[j];
            pokers[j] = tmp;
        }
    }

    public static void main(String[] args) {
        String[] number = {"2","3","4","5","6","7","8","9","10","J","Q","k","A"};
        String[] flowrcolor = {"黑桃","梅花","方块","红心"};
        String[] pokers = new String[52];
        int k = 0;
        for(int i = 0; i < 4; i++)
        {
            for(int j = 0; j < 13; j++)
            {
                pokers[k] = flowrcolor[i] + number[j];
                k++;
            }
        }
        pokershuff(pokers);

        int i = 1;
        for(String a: pokers) {
            System.out.print(a + " ");
            if(i % 10 == 0)
                System.out.println();
            i++;
        }
    }
}
